<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Login.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  <body>
    <!-- 
                登录时候  用户名和密码 from 表单 
        action: 数据提交到的目的地址
        method: get post 
    -->
    <form action="login" method="get">
              用户名:<input type="text" name="username"><br>
              密&nbsp;码：<input type="password" name="pwd"><br>
       <input type="submit" value="登录">       
    </form>
    <h2><%
              String msg=(String)request.getAttribute("msg");
              if(msg!=null){
                 out.print(msg);
              }
              %></h2>
    
  </body>
</html>
